class Message < ActiveRecord::Base
  validates_presence_of :content
  
  def self.message_count(id)
    messages = find(:all, :conditions => "user_id='#{id}'")
    messages.size
  end
  
end
